<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
        img{
            vertical-align: bottom;
        }
    </style>
</head>
<body>
    <div class="app">
        <input type="text" v-bind:placeholder="tips">
        <input type="submit" value="提交">
        <img v-bind:src="photo" alt="">
        <hr>
        <div>1 + 2 的值是：{{ 1 + 2}}</div>
        <hr>
        <div>{{tips}}翻转的结果是:{{tips.split('').reverse().join('')}}</div>
        <div :title="'box' +index">这是一个div</div>
    </div>
    <script>
        const vm = new Vue({
            el: '.app',
            data: {
                tips: '输入用户名',
                photo: 'https://i1.hdslb.com/bfs/archive/19e5b1dab155924a3cff2c832cbfd802eb6a14de.jpg@672w_378h_1c.webp',
                index: 4,
            }
        })
    </script>
</body>
</html>